home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc B) / Acorn User China CD-ROM (UK) (Disc B).bin / STUTTGART / FROMUTS / UNIXLIB37B / test_c_envtest < prev    next >
Encoding:
Text File  |  1992-02-09  |  224 b   |  15 lines

  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. #include "unistd.h"
  5.  
  6. int main()
  7. {
  8. puts(getenv("UnixFS$/tmp"));
  9. puts(getenv("UnixFS$/tmp"));
  10. puts(getenv("TMP"));
  11. putenv("TMP=Hello World");
  12. puts(getenv("TMP"));
  13. puts(getenv("TMP"));
  14. }
  15.